[PATCH] MySQL: Free the results when QSqlQuery::finished() is called
authorDaniel Vrátil <dvratil@kde.org>
Sat, 1 Dec 2018 16:56:41 +0000 (17:56 +0100)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Thu, 23 Jan 2020 12:08:39 +0000 (12:08 +0000)
commitfd066d120c7f04ac525c6c6b05c508215701a728
tree0dd3319c5ccc899429e6cd7e783e815620ca4cdc
parentd18119a08a97b3e3dab0aebf030c225316438045
[PATCH] MySQL: Free the results when QSqlQuery::finished() is called

Calling mysql_stmt_free_result() frees the results of the last
executed query while keeping the prepared statement valid. This
allows one to keep around prepared QSqlQueries without the overhead
of keeping all the results in memory.

Change-Id: I4589e90857cc4e9a6f9612799bfca967a67e2ab2
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Gbp-Pq: Name mysql_free_results_when_qsqlquery_finished_is_called.patch
src/plugins/sqldrivers/mysql/qsql_mysql.cpp